import axios from "axios";
let allList = (params) => axios.get('/category/list', { params });
let list = (params) => axios.get('/category/sub', { params });
let edit = (data) => axios.post('/category/edit', data);
let insert = (data)=>axios.post('/category/add',data);
let remove = (data)=>axios.post('/category/remove',data);
export default {
    list,edit,allList,insert,remove
}